import request from '@/utils/request'

export function getShortdistance(data) {
  return request({
    url: 'shortdistance/page',
    method: 'post',
    data
  })
}

export function getShortdistanceDetail(data) {
  return request({
    url: '/shortdistance/' + data,
    method: 'get'
  })
}

export function addShortdistance(data) {
  return request({
    url: '/shortdistance/add',
    method: 'post',
    data
  })
}

export function getTurnstileDetail(data) {
  return request({
    url: '/shortdistance/turnstile/' + data,
    method: 'get'
  })
}

export function getPlatecameraDetail(data) {
  return request({
    url: '/shortdistance/platecamera/' + data,
    method: 'get'
  })
}

export function manualPost(data) {
  return request({
    url: '/shortdistance/manual/post',
    method: 'post',
    data
  })
}

export function tempPost(data) {
  return request({
    url: '/shortdistance/temp/post',
    method: 'post',
    data
  })
}

export function getShortdistanceOutput(data) {
  return request({
    url: 'shortdistance/output',
    method: 'post',
    data
  })
}

export function getShortdistanceTotal(data) {
  return request({
    url: 'shortdistance/total/page',
    method: 'post',
    data
  })
}
